package com.softlook.mt.server.db.dto;

import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.LinkedList;
import java.lang.Object;

public class Devicegroup {
	private Integer devicegroupid;
	private String name;
	private List devicegroupidDeviceRefList = new LinkedList();
	public Integer getDevicegroupid() {
		return this.devicegroupid;
	}
	public void setDevicegroupid(Integer devicegroupid) {
		this.devicegroupid = devicegroupid;
	}
	public String getName() {
		return this.name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public static boolean hasColumn(String column) {
		if(column.toUpperCase().equals("devicegroupid".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("name".toUpperCase())){
		   return true;
		}
		return false;
	}
	public boolean equals(Object object) {
		if(!(object instanceof Devicegroup)){
			return false;
		}
		
		Devicegroup table = (Devicegroup)object;
		if(this.devicegroupid == null &&  table.devicegroupid != null){
		   return false;
		}
		if(this.devicegroupid != null &&  table.devicegroupid == null){
		   return false;
		}
		if(this.devicegroupid != null && !this.devicegroupid.equals(table.devicegroupid)){
		   return false;
		}
		if(this.name == null &&  table.name != null){
		   return false;
		}
		if(this.name != null &&  table.name == null){
		   return false;
		}
		if(this.name != null && !this.name.equals(table.name)){
		   return false;
		}
		return true;
	}
	public List getDevicegroupidDeviceRefList() {
		return this.devicegroupidDeviceRefList;
	}
	public void setDevicegroupidDeviceRefList(List devicegroupidDeviceRefList) {
		this.devicegroupidDeviceRefList = devicegroupidDeviceRefList;
	}
}
